#define _CRT_SECURE_NO_WARNINGS
void Reverse(char* str)
{
    char* left = str;
    char* right = str + strlen(str) - 1;
    while (left < right)
    {
        char temp = *left;
        *left = *right;
        *right = temp;
        ++left;
        --right;
    }
}
int main()
{
    char arr[10001];
    gets(arr);
    Reverse(arr);
    puts(arr);
    return 0;
}